package com.example.fresh_fruit.service;

import com.example.fresh_fruit.entity.Commodity;
import com.example.fresh_fruit.entity.OrderDetails;
import org.springframework.stereotype.Repository;

/**
 * @author :飞天の鱼
 * @date : 2022/8/22 17:41
 */
@Repository
public interface OrderDetailsService {

    int insertDetails();

    /**
     * @param orderDetails
     * 检查商品是否合法
     * @return
     */
    int checkCommodity(OrderDetails orderDetails);

    /**
     * @return
     * 确认订单详情，即商品id，用户点击
     */
    int confirmOrders(Integer id);
}
